package com.springboot.tr.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: ZZZ
 * @time: 2021/8/8 21:37
 */
@Component
public class CollectPerfomanceDataRunner implements ApplicationRunner {
@Autowired
private  CollectPerfomanceDataScheduledTask collectPerfomanceDataScheduledTask;

    /**
     * 程序启动完毕后,需要自启的任务
     */
    @Override
    public void run(ApplicationArguments applicationArguments) {
        collectPerfomanceDataScheduledTask.init();

    }
}
